package com.zzw.mode;

import java.sql.ResultSet;

/**
 * @author zzw
 * @see
 * @since 2018/3/7
 */
//模板方法
public class UserQueryTemplate extends QueryTemplate<String> {

    @Override
    protected String resolveResultSet(ResultSet resultSet) {
        try {
            if(resultSet.next()){
                long id = resultSet.getLong("id");
                String name = resultSet.getString("name");
            }
        }catch (Exception e){
            throw new RuntimeException("ResolveResultSet error.",e);
        }
        return null;
    }
}
